package com.study.util

import java.util.ResourceBundle

/**
 * @Description: 配置文件解析类
 * @Author: LiuQun
 * @Date: 2022/5/14 17:40
 */
object MyPropsUtils {
  private val bundle: ResourceBundle = ResourceBundle.getBundle("config")

  def apply(propsKey: String): String = {
    bundle.getString(propsKey)
  }

  def main(args: Array[String]): Unit = {
    println(MyPropsUtils("kafka.bootstrap-server"))
  }

}
